#include "card.h"

namespace dymy
{
    namespace card
    {
        AllCards_t MakeAllCards()
        {
            AllCards_t ret{};
            constexpr size_t card_num = CARD_NUM;

            for (size_t i = 0; i < card_num; ++i)
            {
                ret[i * 4 + 0] = encode_card(SPADE, i);
                ret[i * 4 + 1] = encode_card(HEART, i);
                ret[i * 4 + 2] = encode_card(DIAMOND, i);
                ret[i * 4 + 3] = encode_card(CLUB, i);
                // ret[card_num * 0 + i] = encode_card(SPADE, i);
                // ret[card_num * 1 + i] = encode_card(HEART, i);
                // ret[card_num * 2 + i] = encode_card(DIAMOND, i);
                // ret[card_num * 3 + i] = encode_card(CLUB, i);
            }

            //最后两张是小王和大王
            ret[card_num * 4 + 0] = SMALL_KING; //
            ret[card_num * 4 + 1] = BIG_KING;
            return ret;
        }
    }
}